import 'package:flutter_screenutil/flutter_screenutil.dart';

/// Created by DongKing on 2020/9/23
/// Version 1.0
/// Describe:屏幕适配的封装
class ScrUtil {
  //按照宽度适配
  static w(num value) {
    return ScreenUtil().setWidth(value);
  }

  //按照高度适配
  static h(num value) {
    return ScreenUtil().setHeight(value);
  }

  //适配文字
  static sp(num value) {
    return ScreenUtil().setSp(value);
  }
}
